package com.fulihui.wgj.admin.config;

import com.fulihui.weixinsdk.WeixinSDK;
import com.fulihui.weixinsdk.WeixinSDKImpl;
import com.fulihui.weixinsdk.http.HttpSelector;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;

/**
 * WeixinSDKConfig
 *
 * @author wang_wx
 * @date 2018-06-20
 */
@Configuration
public class WeixinSDKConfig {

    @Bean
    public HttpSelector httpSelector() {
        return new HttpSelector();
    }

    @Bean
    public WeixinSDK weixinSDK() {
        return new WeixinSDKImpl(httpSelector());
    }
}
